package com.example.mobiledatapackage.config;

import org.apache.jena.rdf.model.InfModel;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.reasoner.Reasoner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class InfModelBean {

    @Autowired
    private Model rawModel;

    @Autowired
    private Reasoner reasoner;

    @Bean
    public InfModel getInfModel() {
        return ModelFactory.createInfModel(reasoner, rawModel);
    }
}
